//
//  musicrunCell.m
//  享动
//
//  Created by lanou on 16/4/8.
//  Copyright © 2016年 HHUI. All rights reserved.
//

#import "musicrunCell.h"
#import <UIImageView+WebCache.h>
@implementation musicrunCell

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        self.picImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, (KWIDTH-40)/3, (KWIDTH-40)/3)];
        self.picImageView.backgroundColor = [UIColor lightGrayColor];
        self.picImageView.userInteractionEnabled = YES;
        [self.contentView addSubview:_picImageView];
        
        self.titlelabel = [[UILabel alloc]initWithFrame:CGRectMake(0, (KWIDTH-40)/3+5, (KWIDTH-40)/3, 20)];
        self.titlelabel.textAlignment = NSTextAlignmentCenter;
       
        [self.contentView addSubview:_titlelabel];
        
       
        
        
        
        self.touchView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, (KWIDTH-40)/3, (KWIDTH - 40)/3 + 35)];
        self.touchView.backgroundColor = [UIColor whiteColor];
        self.touchView.alpha  =0.1;
        self.touchView.userInteractionEnabled = YES;
        [self.contentView addSubview:_touchView];
        
        
        self.deleteButton = [UIButton buttonWithType:UIButtonTypeSystem];
        self.deleteButton.frame = CGRectMake((KWIDTH-40)/3-20, 0, 20, 20);
        [self.deleteButton setBackgroundImage:[UIImage imageNamed:@"delete1"] forState:UIControlStateNormal];
        self.deleteButton.hidden = YES;
        [self.contentView addSubview:_deleteButton];

        
    }
    return self;
}


@end
